package com.tjdr.his.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @AUTHOR 药品交易记录表
 * @DATE 2024/10/18 16:15
 * @DESCRIBER
 */
@TableName
@Data
@NoArgsConstructor
public class GiveBackRecords {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 患者编号
     */
    private Integer registerId;
    @TableField(exist = false)
    private Register register;
    /**
     * 药品编号
     */
    private Integer drugId;
    @TableField(exist = false)
    private DrugInfo drugInfo;
    /**
     * 记录生成的时间
     */
    private Date date;
    /**
     * 医生编号
     */
    @TableField(exist = true)
    private Integer employeeId;

    @TableField(exist = false)
    private Employee employee;
    /**
     * 退药或者发药的药品数量
     */
    private Integer number;
    /**
     * 费用
     */
    private BigDecimal cost;

    /**
     * 操作的行为状态
     */
    private String operatorState;
}
